<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <script>
        //将会报错 %E8%BF%94%E5%9B%9E…%A5%E9%94%99.html:1 Uncaught (in promise) TypeError: Chaining cycle detected for promise #<Promise>
        let p = new Promise((resolve, reject) => {
            resolve('你好')
        })
        let p1 = p.then(res => {
            return p1
        })
        console.log(p)
    </script>

</body>

</html>